<template>
  <div class="basic-container">
    <item-box title="基本概况">
      <template #content>
        <div class="content-warp">
          <div class="counts-row">
            <div class="street-count">
              <span class="title">管理街道数</span>
              <span class="count">5</span>
              <div class="bg1"></div>
            </div>
            <div class="lamp-count">
              <span class="title">路灯总数</span>
              <span class="count">680</span>
              <div class="bg2"></div>
            </div>
          </div>
          <div class="chart-warp">
            <basic-chart id="basicchart"></basic-chart>
          </div>
        </div>
      </template>
    </item-box>
  </div>
</template>

<script setup>
import ItemBox from '../ItemBox/index.vue'
import BasicChart from './BasicChart.vue'
import {} from 'vue'
</script>

<style lang="scss" scoped>
.basic-container {
  width: 100%;
  height: 100%;
  .content-warp {
    width: 100%;
    height: 100%;
    .counts-row {
      width: 100%;
      display: flex;
      column-gap: 10%;
      padding-left: 12%;
      .street-count {
        width: 130px;
        height: 124px;
        position: relative;
        .title {
          font-size: 14px;
          font-family: Microsoft YaHei;
          font-weight: bold;
          font-style: italic;
          color: #ffffff;
          position: absolute;
          top: 0;
          left: 35%;
        }
        .count {
          width: 70px;
          font-size: 24px;
          font-family: FZLanTingHei-H-GBK;
          font-weight: 400;
          font-style: italic;
          color: #ffffff;
          position: absolute;
          bottom: 73px;
          left: 30%;
          text-align: center;
        }
        .bg1 {
          width: 130px;
          height: 84px;
          background: url(~@@/images/screen/count_bg1.png) no-repeat;
          background-size: 100% 100%;
          position: absolute;
          bottom: 0;
        }
      }
      .lamp-count {
        @extend.street-count;
        .bg2 {
          width: 130px;
          height: 84px;
          background: url(~@@/images/screen/count_bg2.png) no-repeat;
          background-size: 100% 100%;
          position: absolute;
          bottom: 0;
        }
      }
    }
    .chart-warp {
      width: 100%;
      height: calc(100% - 124px - 20px - 20px);
      padding-top: 20px;
      padding-bottom: 20px;
    }
  }
}
</style>
